{% extends "base.html" %}
{% block pagetitle %}浏览名单{% endblock %}
{% block content %}
<table>
  <tr><td>
  <form action="/search" method="get">
    <input type="text" name="q" value="{{ q }}"> </input>
    <input type="submit" value="搜索"></input>
  </form>
  </td><td>
  <table class=art-table>
    <tr>
    <td>名单表：
    {% for shard in shards %}
    {% ifequal shard current_shard %} <td class=td-bg> {% else %} <td> {% endifequal %}
    <a href=/main?shard={{shard}}>{{shard}}</a></td>
    {% endfor %}
    </tr>
  </table>
  </td></tr>
</table>
  {% include "persons_table.html" %}
  <br>
  {% if show_prev %}
     <a href=/main?start={{prev}}&shard={{current_shard}}> &lt;&lt;上一页 </a> 
  {% endif %}
  {% if show_next %}
    &nbsp;&nbsp;<a href=/main?start={{next}}&shard={{current_shard}}> 下一页&gt;&gt; </a>
  {% endif %}
{% endblock %}
